<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: MK
  Date: 2019/7/8
  Time: 10:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户列表</title>
    <h1>用户列表</h1>
    <h4>欢迎您：${user.name}</h4>
</head>
<body>
    <table align="center" bgcolor="aqua" border="1px">
        <tr>
            <th>id</th>
            <th>name</th>
            <th>role</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${userList}" var="l">
            <tr>
                <td>${l.id}</td>
                <td>${l.name}</td>
                <td>${l.role}</td>
                <td>
                    <a href="/id.do?id=${l.id}">查看</a>
                    <a href="/delete.do?id=${l.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
